<?php 
/* SVN FILE: $Id$ */
/* Tournament Test cases generated on: 2009-09-09 21:39:00 : 1252546740*/
App::import('Model', 'Tournament');

class TournamentTestCase extends CakeTestCase {
	var $Tournament = null;
	var $fixtures = array('app.tournament', 'app.registration');

	function startTest() {
		$this->Tournament =& ClassRegistry::init('Tournament');
	}

	function testTournamentInstance() {
		$this->assertTrue(is_a($this->Tournament, 'Tournament'));
	}

	function testTournamentFind() {
		$this->Tournament->recursive = -1;
		$results = $this->Tournament->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Tournament' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet',
			'date'  => 'Lorem ipsum dolor sit amet',
			'location'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>